package com.soup.lab.spring.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class PlayAspect {

    @Before("com.soup.lab.spring.aop.aspect.Pointcuts.allPlayMethod() " +
            "&& within(com.soup.lab.spring.aop.plain.Game+)")
    public void before() {
        System.out.println("let's play");
    }



}
